"""django1 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.conf.urls import url
from . import handlers
from django.views.generic.base import TemplateView

urlpatterns = [
    # url(r'^$', handlers.zstp_handler),
    url(r"MLModel/graph/", handlers.zstp_handler),
    url(r"MLModel/graph/", handlers.zstp_route_handler),
    url(r"MLModel/ddgnn/", handlers.jbzd_handler_a),
    url(r"MLModel/emr/", handlers.jbzd_handler_b),
    url(r"MLModel/ner/", handlers.stsb_handler),
    url(r"MLModel/acc_login/", handlers.login_handler),
    url(r"MLModel/acc_logout/", handlers.logout_handler),

    url(r"MLModel/addProperties/", handlers.entity_relation_op_handler),
    url(r"MLModel/changeProperty/", handlers.entity_relation_op_handler),
    url(r"MLModel/deleteEntity/", handlers.entity_relation_op_handler),
    url(r"MLModel/addRelationship/", handlers.entity_relation_op_handler),
    url(r"MLModel/changeRelationShip/", handlers.entity_relation_op_handler),
    url(r"MLModel/deleteRelation/", handlers.entity_relation_op_handler),

    url(r"MLModel/askProperty/", handlers.query_entity_handler),
    url(r"MLModel/download_handler/", handlers.download_handler),
    url(r"MLModel/import_triplets", handlers.import_handler),

    url(r"", TemplateView.as_view(template_name="index.html"))
]
